﻿using XTeam.Core.Helper;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace XTeam.Documents.UnitTest
{


    /// <summary>
    ///This is a test class for DynamicTest and is intended
    ///to contain all DynamicTest Unit Tests
    ///</summary>
    [TestClass()]
    public class DynamicTest
    {


        [TestMethod()]
        public void EvalTest()
        {
            var c = new { Id = "我爱你", age = 20, Child = new { id = 5 } };
            var result = Dynamic.Eval(c, "Id");
            result = Dynamic.Eval(c, "age");
            result = Dynamic.Eval(c, "Child.id");
        }
    }
}
